/**
 * 
 */
package com.chaihu.jpaDemo.common.thread.log;

import com.chaihu.jpaDemo.modules.system.entity.OperateLog;
import com.chaihu.jpaDemo.modules.system.service.impl.OperateLogServiceImpl;
import com.chaihu.jpaDemo.utils.SpringUtil;

/**  
* 系统日志线程类
*/

public class OperateLogThread implements Runnable{

	private OperateLog operateLog;//系统操作日志
	
	public OperateLogThread(OperateLog operateLog) {
		this.operateLog = operateLog;
	}
	@Override
	public void run() {
		OperateLogServiceImpl logService = SpringUtil.getBean(OperateLogServiceImpl.class);
		logService.save(operateLog);
	}
	public OperateLog getOperateLog() {
		return operateLog;
	}
	public void setOperateLog(OperateLog operateLog) {
		this.operateLog = operateLog;
	}
	
	
}
